<template>
    <h1>书籍明细，书籍id是params：{{$route.params.id}} 标题是 {{$route.params.title}}</h1>
<!--    <h1>书籍明细，书籍id是query：{{$route.query.id}} 标题是 {{$route.query.title}}</h1>-->
<!--    <h1>书籍明细，书籍id是：{{getParams("id")}} 标题是 {{getParams("title")}}</h1>-->

</template>

<script>

export default {
    name: "BookDetail",
    methods: {
        /*getParams(field) {
            return this.$route.query[field] || this.$route.params[field]
        }*/
    }
}
</script>

<style scoped>

</style>